<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/views/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="/views/include/nocachehead.jsp"%>
<c:set var="owner" scope="page" value="${requestScope.OWNER}"></c:set>
<title>${owner.nickname }的分享</title>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/share.js"></script>
<style type="text/css">

.shareTable {
	width:640px;
	border-top:1px dashed #cccccc;
	overflow:hidden;
}

a.articleCategoryA:link,a.articleCategoryA:visited {
	color: #3355ff;
	text-decoration: none;
	font-size:14px;
}

a.articleCategoryA:hover,a.articleCategoryA:active {
	color: #ffffff;
	background: #3355ff;
	font-size:14px;
}
a.articleTitleA:link,a.articleTitleA:visited {
	color: #3355ff;
	text-decoration: none;
	font-size:16px;
	font-weight:bold;
}

a.articleTitleA:hover,a.articleTitleA:active {
	color: #ffffff;
	background: #3355ff;
	font-size:16px;
	font-weight:bold;
}

a.articleContentA:link,a.articleContentA:visited {
	color: #000000;
	text-decoration: none;
	font-size:14px;
}

a.articleContentA:hover,a.articleContentA:active {
	color: #3355ff;
	font-size:14px;
}
.articleInfoFont{
color: #777777;
	font-size:14px;
}
.articleTable {
	width:640px;
	border-top:1px dashed #cccccc;
	overflow:hidden;
}</style>
</head>
<body>
<c:set var="shares" scope="page" value="${requestScope.SHARES}"></c:set>
<a href="${pageContext.request.contextPath}/share/list/user/${owner.id}.html">全部分享</a>&nbsp;
<a href="${pageContext.request.contextPath}/share/list/user/${owner.id}/PHOTO.html">照片</a>&nbsp;
<a href="${pageContext.request.contextPath}/share/list/user/${owner.id}/ARTICLE.html">日志</a>&nbsp;
<a href="${pageContext.request.contextPath}/share/list/user/${owner.id}/VIDEO.html">视频</a>&nbsp;
<a href="${pageContext.request.contextPath}/share/list/user/${owner.id}/SPOT.html">景点</a>
<br>
<skyline:page page="${requestScope.page }" url="" maxSize="6" curClass="curclass curclass2" curStyle="curstyle" normalClass="norClass norclass2" normalStyle="norstyle" decStr="%s" />
<c:forEach var="share" items="${shares }">
	<table class="shareTable">
		<tr>
			<td colspan="2"><a href="${pageContext.request.contextPath}/share/view/${share.id}.html">${share.resourceTitle}</a></td>
		</tr>
		<tr>
			<td colspan="2">
			<fmt:formatDate value="${share.createTime}" type="both" />
			(类型: 
			<c:choose>
				<c:when test="${share.shareType=='ARTICLE'}">日志</c:when>
				<c:when test="${share.shareType=='PHOTO'}">图片</c:when>
			</c:choose>)
			</td>
		</tr>
		<tr >
			<td colspan="2">${share.resourceDigest}</td>
		</tr>
		<tr>
			<td>分享(${share.shareNum})&nbsp;&nbsp;评论(${share.commentNum})&nbsp;&nbsp;顶(${share.up})&nbsp;&nbsp;踩(${share.down})</td>
			<td align="right">
			<skyline:share type="SHARE" value="分享" curClass="shareA" resourceId="${share.id}"/>
			</td>
		</tr>
	</table>
</c:forEach>
</body>
</html>